package com.mallcloud.mall.mall.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mallcloud.mall.common.core.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@ApiModel(value = "MallCartModel", description = "购物车表")
@Data
@TableName(value = "MALL_CART", autoResultMap = true)
public class MallCartModel extends BaseModel {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "商户Id")
    private Long shopId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "产品ID")
    private Long spuId;

    @ApiModelProperty(value = "SkuID")
    private Long skuId;

    @ApiModelProperty(value = "商品数量")
    private Integer cartNum;

    @ApiModelProperty(value = "售价，加入购物车时的商品价格")
    private BigDecimal priceFee;

    @ApiModelProperty(value = "是否已勾选")
    private Boolean isChecked;
}
